<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<div th:fragment="notice">
  <div class="notice-box" th:if="${not #lists.isEmpty(noticeList)}">
    <i class="iconfont icon-gonggao1"></i>
    <ul class="notice-ul">
      <li class="notice-li" th:each="notice:${noticeList}">
        <a th:if="${notice.link} != null and !${#strings.isEmpty(notice.link)}"
           th:href="${notice.link}"
           th:text="${notice.content}"></a>
        <p th:if="${notice.link} == null or ${#strings.isEmpty(notice.link)}"
           th:text="${notice.content}"></p>
      </li>
    </ul>
  </div>
</div>
</html>